function changeTo2D(aId, aName) {
	var mapfor2d = document.getElementById("map");
	var mapfor3d = document.getElementById("map3d");
	mapfor2d.style.display = '';
	mapfor3d.style.display = 'none';
	document.getElementById("tab2").className = "";
	document.getElementById(aId).className = "on";

	jQuery("#change2dto3d").val("2d");

	dimensional = jQuery("#change2dto3d").val();
	jQuery("#3dbutton").attr("style", "display: none;");//二三维切换按钮控制
}

function changeTo3D(aId, aName) {

	var mapfor2d = document.getElementById("map");
	var mapfor3d = document.getElementById("map3d");
	mapfor3d.style.display = '';
	mapfor2d.style.display = 'none';
	document.getElementById("tab1").className = "";
	document.getElementById(aId).className = "on";

	jQuery("#change2dto3d").val("3d");
	dimensional = jQuery("#change2dto3d").val();
	
	jQuery("#3dbutton").attr("style", "");////二三维切换按钮控制
}

//选择行政区div和经纬度div，改search按钮的js调用方法
function changeMethod(aId, aName, str) {
	biao_length = document.getElementsByName(aName).length;
	for (i = 1; i < biao_length + 1; i++) {
		var a;
		a = aId.substring(0, 3);
		a = a + i;
		con = a + "_con"
		document.getElementById(a).className = "";
		document.getElementById(con).style.display = "none";

	}
	conBox = aId + "_con";
	document.getElementById(aId).className = "on";
	document.getElementById(conBox).style.display = "block";
	if (str == 'long') {
		vectorLayerAdmin.removeAllFeatures();
		jQuery("#searchby2d")
				.replaceWith(
						"<input id=\"searchby2d\" name=\"long\" type=\"button\" class=\"btn_search2\" onclick=\"addList('search')\" />");

	} else if (str == "national") {
		vLayer.removeAllFeatures();
		jQuery("#searchby2d")
				.replaceWith(
						"<input id=\"searchby2d\" name=\"national\" type=\"button\" class=\"btn_search2\" onclick=\"addListByNational('search')\" />");
	}
	//	<input id="searchby2d" name="" type="button" class="btn_search2" value=""
	//										onclick="addList('search')" />
}